import request from '@/api/index.js'

// 包裹列表 查询/未到仓/未到仓/列表
export const getPackageList = (data) => {
	return request({
		url: '/applet/reception​/appletUser​/product​/selectProductList',
		method: 'post',
		data 
	})
}

// 包裹列表 查询全部
export const getPackageAllList = (data) => {
	return request({
		url: '/applet/reception​/appletUser​/product​/selectAllProductList',
		method: 'post',
		data
	})
}

// 新增包裹预报
export const addPackage = (data) => {
	return request({
		url: '/applet/reception/isPrediction/addPredictionProduct',
		method: 'post',
		data
	})
}

// 编辑包裹
export const editPackage = (data) => {
	return request({
		url: '/applet/reception/isPrediction/updatePredictionProduct',
		method: 'post',
		data
	})
}

// 删除包裹
export const delPack = (Id) => {
	return request({
		url: `/applet/reception/isPrediction/deleteByProductId/${Id}`,
		method: 'delete'
	})
}